package cn.com.clearbus.controller;

import org.springframework.boot.web.servlet.error.ErrorController;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

@Component
public class ClearCareErrorController implements ErrorController {

    @RequestMapping("/error")
    public String error() {
        System.out.println("ErrControlller.error");
        return "error";
    }

    @Override
    public String getErrorPath() {
        return "error";
    }
}
